﻿package javase.socket.client;

import java.io.*;
import java.net.*;


public class TCPClient {
	
	public static void main(String[] args) {
		OutputStream os;
		try {
			Socket s = new Socket("localhost", 5555);
			String str= "hello";
			os = s.getOutputStream();
			os.write(str.getBytes());
			os.close();
			
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

	public void sendMsg(String msg) {

	}
}
